Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include window offset info in data section when building binaries for AMD platforms ACP_6_3 and ACP_7_0. #9707

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

saisurya-ch
Copy link
Member

Include window info in data section when building binaries for AMD platforms ACP_6_3 and ACP_7_0.

Copy link
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok from Intel point of view, @bhiregoudar feel free to merge. One minor note inline.

@@ -34,3 +34,4 @@ CONFIG_COMP_TDFB=n
#CONFIG_COMP_MUX=n
CONFIG_COMP_SEL=n
CONFIG_COMP_MIXER=n
CONFIG_BINARY_BUILD=n
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ths is a bit odd as there's no BINARY_BUILD Kconfig option defined in the tree. I guess this works,but is not the standard approach.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nnno, let's not do this. All CONFIG_* symbols must have Kconfig entries. It becomes very confusing otherwise. Please add a Kconfig option or make it a generic macro, then of course you cannot define it in *_defconfig. Let me block this for clarification, I stand open for discussion of course

lyakh
lyakh previously requested changes Dec 5, 2024
@@ -34,3 +34,4 @@ CONFIG_COMP_TDFB=n
#CONFIG_COMP_MUX=n
CONFIG_COMP_SEL=n
CONFIG_COMP_MIXER=n
CONFIG_BINARY_BUILD=n
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nnno, let's not do this. All CONFIG_* symbols must have Kconfig entries. It becomes very confusing otherwise. Please add a Kconfig option or make it a generic macro, then of course you cannot define it in *_defconfig. Let me block this for clarification, I stand open for discussion of course

…ries.

Include window info in data section when building binaries for
AMD platforms ACP_6_3 and ACP_7_0.

Signed-off-by: SaiSurya Ch <saisurya.chakkaveeravenkatanaga@amd.com>
@lgirdwood
Copy link
Member

@lyakh good for you now ?

bool
default n
help
Select this if the platform need firmware binaries.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, not sure I understand the comment correctly. What's the alternative? What does CONFIG_AMD_BINARY_BUILD=n mean? No firmware binaries needed? But SOF is providing such a firmware "binary?" Or do you mean additional binary-only firmware parts?

Copy link
Member Author

@saisurya-ch saisurya-ch Dec 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We meant to include the xsram_window in the data section using this config.

By default, xsram_window is present in the .fw_metadata section of rimage. But in a few scenarios, we need this data to be present in the data section of rimage.
We meant binary because, we like to parse few sections of the built rimage and make our own binaries in few cases, for which we need xsram_window to be present in data section rather than the fw_metadata section.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@saisurya-ch maybe you could add a bit of information here in an incremental PR, if I were building SOF for AMD, I wouldn't be sure whether I need this option

@lyakh lyakh dismissed their stale review December 6, 2024 07:10

The comment has been addressed, thanks. Some documentation text could still be improved, but that isn't critical

@lgirdwood lgirdwood merged commit 06fabba into thesofproject:main Dec 6, 2024
43 of 47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants